const Mock = require('mockjs')
const data = Mock.mock({
  'items|6': [{
    id: '@id',
    title: '@sentence(10, 20)',
    'status|1': ['published', 'draft', 'deleted'],
    author: '@cname',
    display_time: '@datetime',
    pageviews: '@integer(300, 5000)',
    url: '@image(200x200)'
  }]
})

module.exports = [
  {
    url: '/vue-admin-template/news/list',
    type: 'get',
    response: (config) => {
      return {
        code: 20000,
        data: data
      }
    }
  }
]
